package com.cskaoyan.mapper.wxMapper;

import com.cskaoyan.bean.po.wxPo.MarketAddress;
import com.cskaoyan.bean.po.wxPo.MarketAddressExample;
import com.cskaoyan.bean.vo.vxVo.cartVo.CheckedAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketAddressMapper {
    long countByExample(MarketAddressExample example);

    Integer countByExampleReturnInteger(MarketAddressExample example);

    int deleteByExample(MarketAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAddress record);

    int insertSelective(MarketAddress record);

    List<MarketAddress> selectByExample(MarketAddressExample example);

    MarketAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketAddress record, @Param("example") MarketAddressExample example);

    int updateByExample(@Param("record") MarketAddress record, @Param("example") MarketAddressExample example);

    int updateByPrimaryKeySelective(MarketAddress record);

    int updateByPrimaryKey(MarketAddress record);


    CheckedAddress queryAddressInfoById(@Param("addressId") Integer addressId);

    Integer findDiscoutBycouponId(Integer couponId);
}